/*
 * @Author: your name
 * @Date: 2020-03-26 09:41:08
 * @LastEditTime: 2020-03-26 09:41:10
 * @LastEditors: Please set LastEditors
 * @Description: 白白赚
 */

// 登录
export const getLogin = "http://b.kb818.com/XP200-Brush/login.html"
// 获取账号
export const getFramePageAccept = "http://accept.kb818.com/XP200-Brush/framePageAccept.html?bar=0&sign="
// 接单
export const getAccept = "http://accept.kb818.com/XP200-Brush-Accept/start.html "

export function ajaxFun(url, param, fun) {
    window.api.ajax({
        url: url,
        method: param.type,
        headers: {
            'X-Requested-With': 'XMLHttpRequest',
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
        },
        dataType: param.dataType ? param.dataType : 'json',
        returnAll: false,
        data: {
            values: param.data
        }
    }, fun)
}